﻿using ClientAppraise.Controls;
using ClientAppraise.ViewModels.Pages.Corpus.CorpusAdorn.Controls;
using ClientAppraise.ViewModels;
using ClientInfrastructure.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ClientAppraise.ViewModels.Pages.Corpus.CorpusType.Controls;

namespace ClientAppraise.Views.Pages.Corpus.CorpusType.Controls
{
    /// <summary>
    /// UcCorpusTypeSelector.xaml 的交互逻辑
    /// </summary>
    public partial class UcCorpusTypeSelector : IZxNavigableView<UcCorpusTypeSelectorViewModel>, IInitDataContextViewModel
    {
        public UcCorpusTypeSelectorViewModel ViewModel { get; }

        public UcCorpusTypeSelector(UcCorpusTypeSelectorViewModel viewModel)
        {
            this.ViewModel = viewModel;
            this.DataContext = this;

            InitializeComponent();
        }

        public void InitDataContext(PageParameterDto? dataContext = null)
        {
            ViewModel.InitDataContext(dataContext);
        }
    }
}
